package com.itqf.benafactroy;

import com.itqf.pojo.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/2 15:21
 * description:
 */
public class annotationFactroy {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext
                = new ClassPathXmlApplicationContext("spring_ioc.xml");

        System.out.println("-------------------------------------");

        Person person = applicationContext.getBean("person", Person.class);
        person.car.run();

        applicationContext.close();

    }
}
